export const loadTxtFile = (): Promise<string> => {
    return new Promise((resolve, reject) => {
        uni.request({
            url: '/static/incantation.txt', // 注意路径
            method: 'GET',
            success: (res) => {
                if (res.statusCode === 200 && typeof res.data === 'string') {
                    resolve(res.data)
                } else {
                    reject('读取失败或格式错误')
                }
            },
            fail: (err) => {
                reject(err)
            }
        })
    })
}